; HuTao

; Constants -------------------------

[Constants]
global $active = 0
global $creditinfo = 0

[Present]
post $active = 0
run = CommandListCreditInfo

; Overrides -------------------------

[TextureOverrideHuTaoPosition]
hash = dd16576c
vb0 = ResourceHuTaoPosition
$active = 1

[TextureOverrideHuTaoBlend]
hash = 153dba3f
vb1 = ResourceHuTaoBlend
handling = skip
draw = 89842,0 

[TextureOverrideHuTaoTexcoord]
hash = 51afdfcf
vb1 = ResourceHuTaoTexcoord

[TextureOverrideHuTaoVertexLimitRaise]
hash = 60345291

[TextureOverrideHuTaoIB]
hash = 0535853d
handling = skip
drawindexed = auto

[TextureOverrideHuTaoHead]
hash = 0535853d
match_first_index = 0
ib = ResourceHuTaoHeadIB
ps-t0 = ResourceHuTaoHeadDiffuse
ps-t1 = ResourceHuTaoHeadLightMap

[TextureOverrideHuTaoBody]
hash = 0535853d
match_first_index = 16509
ib = ResourceHuTaoBodyIB
ps-t0 = ResourceHuTaoBodyDiffuse
ps-t1 = ResourceHuTaoBodyLightMap

[TextureOverrideHuTaoFaceHeadDiffuse]
hash = d00bb0ef
ps-t0 = ResourceHuTaoFaceHeadDiffuse


; CommandList -----------------------

[CommandListCreditInfo]
if $creditinfo == 0 && $active == 1
	pre Resource\ShaderFixes\help.ini\Notification = ResourceCreditInfo
	pre run = CustomShader\ShaderFixes\help.ini\FormatText
	pre $\ShaderFixes\help.ini\notification_timeout = time + 5.0
	$creditinfo = 1
endif

; Resources -------------------------

[ResourceHuTaoPosition]
type = Buffer
stride = 40
filename = HuTaoPosition.buf

[ResourceHuTaoBlend]
type = Buffer
stride = 32
filename = HuTaoBlend.buf

[ResourceHuTaoTexcoord]
type = Buffer
stride = 12
filename = HuTaoTexcoord.buf

[ResourceHuTaoHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = HuTaoHead.ib

[ResourceHuTaoBodyIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = HuTaoBody.ib

[ResourceHuTaoHeadDiffuse]
filename = HuTaoHeadDiffuse.dds

[ResourceHuTaoHeadLightMap]
filename = HuTaoHeadLightMap.dds

[ResourceHuTaoBodyDiffuse]
filename = HuTaoBodyDiffuse.dds

[ResourceHuTaoBodyLightMap]
filename = HuTaoBodyLightMap.dds

[ResourceHuTaoFaceHeadDiffuse]
filename = HuTaoFaceHeadDiffuse.dds

[ResourceCreditInfo]
type = Buffer
data = "Created by LewdLad"


; .ini generated by GIMI (Genshin-Impact-Model-Importer)
; If you have any issues or find any bugs, please open a ticket at https://github.com/SilentNightSound/GI-Model-Importer/issues or contact SilentNightSound#7430 on discord

; 4.1 Character Fix 
[TextureOverride41FixVertexLimitRaise0]
hash = e9d17db6